﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Security;
using System.Text;
using System.Threading.Tasks;

namespace M2B.GestionEntretiens.POCOS
{
    /// <summary>
    /// Cette Classe décrit la relation Test Question
    /// </summary>
    /// <remarks>
    /// Informations de la classe : 
    /// <list type="bullet">
    /// <item name="authors">Auteur : M2B : Maher SAMMARI</item>
    /// <item name="creation date">Date de création : 09/04/2014</item>
    /// <item name="last modification">Date de dernière modification : 09/04/2014</item>
    /// </list>
    /// </remarks>
    [DataContract]
    [Serializable]
    public class TestQuestion
    {
        #region Properties
        /// <summary>
        /// Identificateur
        /// </summary>
        [DataMember]
        public int TestQuestionId { get; set; }
        /// <summary>
        /// Le test 
        /// </summary>
        [DataMember]
        public virtual Test Test
        {
            get;
            set;
        }
        /// <summary>
        /// La question 
        /// </summary>
        [DataMember]
        public virtual Question Question
        {
            get;
            set;
        }
        /// <summary>
        /// Date de création
        /// </summary>
        [DataMember]
        public DateTime? DateCreation { get; set; }
        /// <summary>
        /// Date Modification
        /// </summary>
        [DataMember]
        public DateTime? DateModification { get; set; }
        #endregion
        #region Constructeurs

        public TestQuestion()
        {
            Test = new Test();
            Question = new Question();
        }
        #endregion
    }
}
